import { ref } from 'vue'
import type { XtxGuessInstance } from '@/types/components'

/**
 * 猜你喜欢组合式函数
 * @returns
 */
export function useGuessList() {
  // 猜你喜欢组件实例
  const guessRef = ref<XtxGuessInstance>()
  // 滚动到底部触发加载更多
  const onScrolltolower = () => {
    guessRef.value?.loadMore()
  }

  return {
    guessRef,
    onScrolltolower,
  }
}
